Skip to content

Add emotion text emotion api#6

Open
viveknimkarde wants to merge 3 commits into
masterfrom
add-text-emotion-api
Open

Add emotion text emotion api#6
viveknimkarde wants to merge 3 commits into
masterfrom
add-text-emotion-api

Conversation

@viveknimkarde
Copy link
Copy Markdown
Contributor

  • Add Text Emotion API wrapper for python

Comment thread test/test_text_recoginse_emotion.py Outdated
@@ -0,0 +1,52 @@
# coding: utf-8
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in file name

Comment thread test/test_text_recoginse_emotion.py Outdated
import uuid


class TestTextEmootion(unittest.TestCase):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in class name

Comment thread test/test_text_recoginse_emotion.py Outdated

def setUp(self):
deepaffects.configuration.api_key['apikey'] = os.environ['DEEPAFFECTS_API_KEY']
self.webhook_url = os.environ["DEEPAFFECTS_API_WEBHOOK"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use consistent quotes

Comment thread test/test_text_recoginse_emotion.py Outdated
def tearDown(self):
pass

def test_async_diarize_audio(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you aren't testing diarize audio here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add more tests to test the cases where the request is malformed. Also check for all the expected keys in output

@viveknimkarde viveknimkarde force-pushed the add-text-emotion-api branch 2 times, most recently from 217cd50 to 8890efd Compare June 21, 2018 10:50
@viveknimkarde viveknimkarde force-pushed the add-text-emotion-api branch from 8890efd to f6076e3 Compare June 21, 2018 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants